<?php 
    session_start();
    if(!isset($_SESSION['ses_userid']) || $_SESSION['ses_rule']!= 1){
        header("location:../../admin/");
        exit();
    }
    require '../../libraries/config.php';
?>
<html>
<head>
    <title>Trang chủ admin</title>
    <link href="../../content/css/admin/index.css" type="text/css" rel="stylesheet"/>
</head>
<?php
?>
<body>
    <div id="adtop">
        <div id="logo"><img src="../../image/admin/logo.png" width="150"/></div>
        <div id="topright">
        <div id="topright_top">
            <ul>
                <li><img src="../../image/admin/logout.png" width="30"/><a href="../../controller/admin/logout.php">Thoát</a></li>
                <li style="border-right: 1px solid #CCC;"><img src="../../image/admin/admin.png" width="30"/>Xin chào: <a href="#"><?php echo $_SESSION['ses_username'] ?></a></li>
            </ul>
        </div>
        <div id="topright_bot">
            <form action="" method="post">
                <input type="text" name="keyword" size="30"/>
                <input type="submit" name="search" value=" Tìm kiếm"/>
            </form>
        </div>
        </div>
    </div>
    <div id="admenu">
        <ul>
            <li><a href="#"><img src="../../image/admin/admin.png" width="60"/><p>Thông tin cá nhân</p></a></li>
            <li><a href="#"><img src="../../image/admin/list_user.jpg" width="60"/><p>Quản lý khách hàng</p></a></li>
            <li><a href="#"><img src="../../image/admin/list_category.gif" width="60"/><p>Quản lý category</p></a></li>
            <li><a href="#"><img src="../../image/admin/list_pro.png" width="60"/><p>Quản lý product</p></a></li>
            <li><a href="#"><img src="../../image/admin/list_order.jpg" width="60"/><p>Quản lý hóa đơn</p></a></li>
        </ul>
    </div>
    <div id="admid">
        <?php require './personal.php'; ?>
    </div>
    <div id="adbot"></div>
</body>
</html>